package com.wujilee.dbentity.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author yishu
 * @since 2024-06-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("order_info")
@JsonInclude(value = JsonInclude.Include.NON_EMPTY)
public class EntityOrderInfo extends Model<EntityOrderInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单编号
     */
    @TableField("order_no")
    private String orderNo;

    /**
     * 订单状态
     */
    @TableField("order_status")
    private String orderStatus;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    @TableField("user_id")
    private Long userId;

    /**
     * 逻辑删除(1:已删除，0:未删除)
     */
    @TableField("is_deleted")
    private Integer isDeleted;

    @TableField("pay_status")
    private String payStatus;
    
    @TableField("code_url")
    private String codeUrl;
    
    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
